package com.jfeinstein.jazzyviewpager;

import com.soft.slider.SliderActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class WelcomeActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_welcome);

		findViewById(R.id.jazzyviewpager).setOnClickListener(
				new OnClickListener() {

					@Override
					public void onClick(View v) {
						goStartActivity(MainActivity.class);
					}
				});
		;

		findViewById(R.id.fancycoverflow).setOnClickListener(
				new OnClickListener() {

					@Override
					public void onClick(View v) {
						goStartActivity(ViewGroupActivity.class);
					}
				});
		;

		findViewById(R.id.slider).setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				goStartActivity(SliderActivity.class);
			}
		});
		;

	}

	void goStartActivity(Class<?> mClass) {
		Intent it = new Intent(this, mClass);
		startActivity(it);
	}

}
